define(['common/js/controller/menu-controller-0.1'],function() {
	diretiveModule.directive('plusMenuTree', function () {
		return {
			restrict: "AE",
			replace: true,
			controller: "MenuController",
			templateUrl: rootPath + "/common/js/html/plusMenuTree.html",
			link: function (scope, elm, attrs) {
				var initUrl = attrs.initUrl;
				scope.loadMenus(attrs.serviceName, attrs.serviceMethod,initUrl);
			}
		};
	});

	diretiveModule.directive('plusMenuPop', function () {
		return {
			restrict: "AE",
			replace: true,
			controller: "MenuController",
			templateUrl: rootPath + "/common/js/html/plusMenuPop.html",
			link: function (scope, elm, attrs) {
				var initUrl = attrs.initUrl;
				scope.loadMenus(attrs.serviceName, attrs.serviceMethod,initUrl);
			}
		};
	});

	diretiveModule.directive('plusMenuNav', function () {
		return {
			restrict: "AE",
			replace: true,
			controller: "MenuController",
			templateUrl: rootPath + "/common/js/html/plusMenuNav.html",
			link: function (scope, elm, attrs) {
				var initUrl = attrs.initUrl;
				scope.loadMenus(attrs.serviceName, attrs.serviceMethod,initUrl);
			}
		};
	});
});
